/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using QuocTeViet.DAL;
using QuocTeViet.DO;
/// <summary>
/// Summary description for cmsSanPhamBL
/// </summary>
namespace QuocTeViet.BL 
{
    public class cmsSanPhamBL 
    {
    	#region Private Variables
		cmsSanPhamDAL objcmsSanPhamDAL;
		#endregion
		
        #region Public Constructors
        public cmsSanPhamBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsSanPhamDAL=new cmsSanPhamDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsSanPhamDO objcmsSanPhamDO)
        {
            return objcmsSanPhamDAL.Insert(objcmsSanPhamDO);
        }

        public int Update(cmsSanPhamDO objcmsSanPhamDO)
        {
             return objcmsSanPhamDAL.Update(objcmsSanPhamDO);

        }

        public int Delete(cmsSanPhamDO objcmsSanPhamDO)
        {
             return objcmsSanPhamDAL.Delete(objcmsSanPhamDO);

        }

         public int DeleteAll()
        {
             return objcmsSanPhamDAL.DeleteAll();
        }

        public cmsSanPhamDO Select(cmsSanPhamDO objcmsSanPhamDO)
        {
            return objcmsSanPhamDAL.Select(objcmsSanPhamDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsSanPhamDAL.SelectAll1();
        }

        public DataTable TimKiem(string tk,int loai,int nhanhieu)
        {
            return objcmsSanPhamDAL.TimKiem(tk,loai,nhanhieu);
        }
        public DataTable SelectAll()
        {
            return objcmsSanPhamDAL.SelectAll();
        }

        public DataTable SelectMoi(int i)
        {
            return objcmsSanPhamDAL.SelectMoi(i);
        }
        public DataTable SelectNoiBat(int i)
        {
            return objcmsSanPhamDAL.SelectNoiBat(i);
        }
        public DataTable SelectByLoaiAnhNhanHieu(int LoaiSanPhamID, int nhanhieu)
        {
            return objcmsSanPhamDAL.SelectByLoaiAnhNhanHieu(LoaiSanPhamID, nhanhieu);
        }
        public DataTable SelectCungLoai(int id)
        {
            return objcmsSanPhamDAL.SelectCungLoai(id);
        }
        public void UpdateAll(int stt, int[] spid, long[] dongia)
        {
            objcmsSanPhamDAL.UpdateAll(stt, spid, dongia);
        }
        public DataTable SelectByTag(string tag, int i)
        {
            return objcmsSanPhamDAL.SelectByTag(tag, i);
        }
        public DataTable cmsSanPham_SelectByPhanLoai(int PhanLoai)
        {
            return objcmsSanPhamDAL.cmsSanPham_SelectByPhanLoai(PhanLoai);
        }
        public DataTable SelectByLoaiSanPhamAnhNhanHieu(int nhanHieuID, int loaiSanPhamID)
        {
            return objcmsSanPhamDAL.SelectByLoaiSanPhamAnhNhanHieu(nhanHieuID, loaiSanPhamID);
        }

        public DataTable SearchKeyword(string nhanHieuID, int loaiSanPhamID, int Key)
        {
            return objcmsSanPhamDAL.SearchByKey(nhanHieuID, loaiSanPhamID, Key);
        }
#endregion          
    
    }

}
